import java.io.IOException;
import java.io.InputStreamReader;
import java.io.LineNumberReader;

public class RunShell {
	public static void main(String[] args) {
		try {
			Process prcess=Runtime.getRuntime().exec("/root/test/ssh_test.sh");
			InputStreamReader ir=new InputStreamReader(prcess.getInputStream());
			LineNumberReader input=new LineNumberReader(ir);
			String line;
			while((line = input.readLine()) != null)
                System.out.println(line);
            input.close();
            ir.close();
		}catch (IOException e) {
            e.printStackTrace();
        }
	}
}